package cn.itsource.service.impl;

import cn.itsource.basic.domain.AjaxResult;
import cn.itsource.domain.org.Employee;
import cn.itsource.mapper.EmployeeMapper;
import cn.itsource.service.EmployeeService;
import com.baomidou.mybatisplus.service.IService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmployeeServiceImpl extends ServiceImpl<EmployeeMapper,Employee> implements EmployeeService {

    @Autowired
    EmployeeMapper employeeMapper;


    @Override
    public AjaxResult<Employee> pageList(Employee employee) {
        List<Employee> employees = employeeMapper.pageList(employee);

        return AjaxResult.setResult(employees);
    }
}
